<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>酒店详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/js/plugins/dialog/dialog.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/travelContent.css"/>
    <script src="/js/plugins/jrender/jrender.js"></script>
    <script src="/js/plugins/dialog/dialog.min.js"></script>
    <script src="/js/common.js"></script>
</head>
<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col">
            <a href="javascript:history.go(-1);">
                <span><i class="fa fa-chevron-left"></i></span>
            </a>
        </div>
        <div class="col">
        </div>
    </div>
</div>

<div class="hotels">
    <img class="cover" render-src="roomUrl">
    <div class="container">
        <h6 class="title" render-html="name"></h6>
        <div class="row">
            <div class="col-2 img">
            </div>
            <div class="attention col">
                <span class="addr" render-html="place"></span>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="content" render-html="hotelContent.content">
        </div>
    </div>
    <hr>
</div>
</body>
<script>
    // 页面加载完毕
    $(function () {
        var id = getParams().id;
        if (id) {
            // 发送ajax请求获取酒店详细信息
            $.get("/hotels/" + id, function (data) {
                console.log(data);
                // 渲染数据
                $(".hotels").renderValues(data);
            });
        }
    })
</script>
</html>